package com.bonc.cq.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.*;


@SpringBootApplication
//@EnableEurekaClient
@EnableDiscoveryClient //开启其他注册中心 比如 consul,zookeeper
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }

    @RequestMapping("/error")
    public List<String> error() {
        return Arrays.asList("sorry, something went wrong.");
    }

}
